cd $SRC/binutils-build
make prefix="$PKG/usr" tooldir="$PKG/usr" install

# Remove unwanted files
rm -f "$PKG"/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*

# No shared linking to these files outside binutils
rm -f "$PKG"/usr/lib/lib{bfd,opcodes}.so
echo 'INPUT( /usr/lib/libbfd.a -liberty -lz -ldl )' > "$PKG/usr/lib/libbfd.so"
echo 'INPUT( /usr/lib/libopcodes.a -lbfd )' > "$PKG/usr/lib/libopcodes.so"
